package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 反馈的回复表
 * </p>
 *
 * @author czg
 * @since 2022-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FeedbackReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 回复人的id
     */
    private Integer userId;

    /**
     * 回复人的类型 同登录类型
     */
    private Integer userType;

    /**
     * 回复人的名字
     */
    private String name;

    /**
     * 反馈的id
     */
    @NotNull(message = "反馈的id不能为空")
    private Integer feedbackId;

    /**
     * 回复内容
     */
    @NotEmpty(message = "回复内容不能为空")
    private String content;

    /**
     * 状态 1正常 -1删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;
}
